package com.yys.util;

import io.minio.MinioClient;
import io.minio.errors.MinioException;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class MinioClientProvider {

    @Bean
    public static MinioClient createMinioClient() {
        // 创建 MinioClient
        MinioClient minioClient = MinioClient.builder()
                .endpoint("http://192.168.71.25:9000")
                .credentials("admin", "admin123")
                .build();
        return minioClient;
    }
}

